//
//  MYShopSearchGoodsCell.m
//  MuYing
//
//  Created by tbb on 2019/7/25.
//  Copyright © 2019 TBB. All rights reserved.
//

#import "MYShopSearchGoodsCell.h"

@implementation MYShopSearchGoodsCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.goodsIcon.layer.cornerRadius = 8;
    self.goodsIcon.clipsToBounds = true;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(YQPGoodsModel *)model
{
    _model = model;
    
    [self.goodsIcon sd_setImageWithURL:[NSURL URLWithString:model.defaultImage] placeholderImage:IMAGE_NAMED(@"")];
    self.titleLb.text = model.skuName;
    self.payCountLb.text = [NSString stringWithFormat:@"%@%@", model.payNumber.length >0? model.payNumber:@"0",kYQLS(@"人付款")];
    self.priceLb.text = [NSString stringWithFormat:@"$%.2f", model.price.doubleValue];

}

@end
